#ifndef ValidationMacros_h
#define ValidationMacros_h
//-------------------打印日志-------------------------
//DEBUG  模式下打印日志
#ifdef DEBUG
#define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#define DLog(...)
#endif

//数据验证
#define EmptyStr(f) (f!=nil && [f isKindOfClass:[NSString class]] && ![f isEqualToString:@""])
#define SafeStr(f)  (EmptyStr(f) ? f:@"")




#endif /* ValidationMacros_h */
